package com.atguigu.java;

import org.junit.Test;

import java.util.Comparator;

/**
 * @author wxw
 * @create 2021-03-29 16:05
 */
public class LambdaTest1 {
    @Test
    public void test1(){
        Runnable r1 = ()-> System.out.println("hello world");
        r1.run();
        Comparator<Integer> c1 =(o1,o2)->Integer.compare(o1,o2);
    }

}
